package com.ddwl.goods.mapper;

import com.ddwl.common.dao.mapper.BaseMapper;
import com.ddwl.goods.model.Collect;
import com.ddwl.schema.bo.goods.ItemSearchBo;
import com.ddwl.schema.vo.goods.CollectVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/7/15 12:58
 */
@Repository
public interface CollectMapper extends BaseMapper<Collect, ItemSearchBo> {

    int deleteItem(Collect record);

    Collect findByUserIdAndItemId(@Param("userId") String userId, @Param("itemId") String itemId);

    List<CollectVo> queryCollectList(ItemSearchBo param);
}
